<?php
/**
 * Created by PhpStorm.
 * User: fengzi
 * Date: 2019/7/23
 * Time: 14:01
 */
namespace app\common\model;
use think\Model;
class Message extends Model{
    public function add($type_id,$business_id,$user_id,$title,$contents){
        $data['type_id'] = $type_id;
        $data['user_id'] = $user_id;
        $data['business_id'] = $business_id;
        $data['title'] = $title;
        $data['contents'] = $contents;
        $data['create_time'] = time();
        Message::insert($data);
    }
}